feat(api): add screencast size option - #3085
feat(api): add screencast size option#3085Rohan Patnaik (rohan-patnaik) wants to merge 1 commit into
Conversation
|
Don't change the |
|
Simon Knott (@Skn0tt) thanks, you’re right. I hand-edited I should have checked the generation source first. After doing that, I found If you’re open to reopening this PR, I can fix it properly by keeping the |
|
Just found that microsoft/playwright#41183 fixed the upstream source-of-truth metadata for this by removing the JS-only marker from |
Fixes #3083
Summary
This adds the missing
sizeoption topage.screencast.start()for both async and sync Python APIs.Why
The screencast protocol already accepts a size, but Python users could only set
quality,path, andon_frame. That meant users could not control screencast frame/video resolution without changing the page viewport.Test plan
python3 - <<'PY'signature import check for async and syncScreencast.startgit diff --check